package cn.kgc.service.impl;

import cn.kgc.dto.ClassifyDto;
import cn.kgc.mapper.ClassifyMapper;
import cn.kgc.pojo.Classify;
import cn.kgc.service.ClassifyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品分类 服务实现类
 * </p>
 *
 * @author qf
 * @since 2022-03-03
 */
@Service
public class ClassifyServiceImpl extends ServiceImpl<ClassifyMapper, Classify> implements ClassifyService {


    private final ClassifyMapper classifyMapper;


    public ClassifyServiceImpl(ClassifyMapper classifyMapper) {
        this.classifyMapper = classifyMapper;
    }

    @Override
    public List<ClassifyDto> findAll() {
        return  classifyMapper.findAll() ;
    }

}
